package com.gitee.linmt.entity;

import com.gitee.linmt.enums.AccountState;
import com.gitee.linmt.enums.Gender;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author <a href="mailto:lin-mt@outlook.com">lin-mt</a>
 */
@Entity(name = "user_info")
public class UserInfo {
    
    @Id
    private Long id;
    
    @Column(length = 4)
    private Gender gender;
    
    @SuppressWarnings("JpaDataSourceORMInspection")
    @Column(name = "account_state")
    private AccountState accountState;
    
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Gender getGender() {
        return this.gender;
    }
    
    public void setGender(Gender gender) {
        this.gender = gender;
    }
    
    public AccountState getAccountState() {
        return this.accountState;
    }
    
    public void setAccountState(AccountState accountState) {
        this.accountState = accountState;
    }
}
